using System;

namespace Kiwi.Container
{
    public class ComponentNotFoundException : ContainerException
    {
        public ComponentNotFoundException(Type type)
        {
            Type = type;
        }

        public Type Type { get; private set; }

        public override string Message
        {
            get { return string.Format("Component of type {0} is not registered in the container.", Type); }
        }
    }
}